package com.smart.manager.pop.entities.assembler;

import com.smart.manager.pop.entities.enums.RewardRule;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @author Administrator
 */

@ApiModel(value = "分享对象")
@Data
@Accessors(chain = true)
public class Reward implements Serializable {

    @ApiModelProperty(value = "奖励规则")
    @NotNull(message = "奖励规则不能为空")
    private RewardRule rule;


    @ApiModelProperty(value = "达成数量")
    private Integer achievedQuantity;


    @ApiModelProperty(value = "奖品数量")
    private Integer rewardQuantity;


    @ApiModelProperty(value = "最多能获取的奖励次数")
    private Integer mostQuantity;

}
